package com.qqt.csr.route.dto.resp;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.qqt.csr.common.acl.aics.resp.CsMemberInfoDTO;
import com.qqt.csr.route.enums.RouteTaskStatusEnum;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

@Getter
@Setter
@Builder
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class CreatingRouteTaskRespDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 9136135964671982941L;

    /**
     * 路由任务id
     */
    private String routeTaskId;

    /**
     * 提示内容
     */
    private String content;

    /**
     * 路由任务状态
     */
    private RouteTaskStatusEnum status;

    public static CreatingRouteTaskRespDTO of(String routeTaskId, RouteTaskStatusEnum status) {
        return CreatingRouteTaskRespDTO.of(routeTaskId, null, status);
    }

    public static CreatingRouteTaskRespDTO of(String routeTaskId, String content, RouteTaskStatusEnum status) {
        return CreatingRouteTaskRespDTO.builder()
                .routeTaskId(routeTaskId)
                .content(content)
                .status(status)
                .build();
    }
}
